package com.teemor.tim.model.message;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/12/18 15:25
 */
@Data
public class StoreMessageWrapper implements Serializable {

    @ApiModelProperty("选填 消息发送方 UserID（用于指定发送消息方帐号）")
    @JSONField(name = "From_Account")
    private String FromAccount;

    @ApiModelProperty("消息接收方 UserID")
    @JSONField(name = "To_Account")
    @NotBlank
    private String ToAccount;

    @JSONField(name = "MsgSeq")
    private Integer MsgSeq;

    @ApiModelProperty("消息随机数，后台用于同一秒内的消息去重。请确保该字段填的是随机数")
    @JSONField(name = "MsgRandom")
    private Integer MsgRandom;

    @JSONField(name = "MsgKey")
    private String MsgKey;

    @ApiModelProperty("消息时间戳，UNIX 时间戳（单位：秒）")
    @JSONField(name = "MsgTime")
    private Integer MsgTime;

    private static final long serialVersionUID = 1797494841432983108L;
    private List<MessageWrapper> messageModel;

}
